package index;

/** 
 * Les objets PositionDoc contiennent pour un terme donné la position dans un document 
 *  
 * */
public class PositionDoc {

	/** id de la position */
	public int pos_id;
	/** id du terme */
	public int term_id;
	/** id du document */
	public int doc_id;
	/** position du terme */
	public int position;
	/** id de la balise */
	public int bal_id;
	
//	public PositionDoc(int pos_id, int term_id, int position, int bal_id){
//		this.pos_id=pos_id;
//		this.term_id=term_id;
//		this.position=position;
//		this.bal_id=bal_id;
//	}

	public PositionDoc( int pos_id, int doc_id, int term_id, int position, int bal_id){
		this.pos_id = pos_id;
		this.doc_id=doc_id;
		this.term_id=term_id;
		this.position=position;
		this.bal_id=bal_id;
	}
	
	
	public PositionDoc( int doc_id, int term_id, int position, int bal_id){
		this.doc_id=doc_id;
		this.term_id=term_id;
		this.position=position;
		this.bal_id=bal_id;
	}

	public void PrintPositionDoc() {
		System.out.print("Position Doc :");
		  System.out.print("d:"+ doc_id +"\t p:"+position+"\t b:"+bal_id);
		  System.out.print(" - ");
		
	}
}
